<%@page import="com.bill.common.system.dto.RuleDTO"%>
<%@page import="com.bill.common.system.service.IRuleService"%>
<%@page import="com.bill.common.business.service.IMatchService"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="org.springframework.context.ApplicationContext"%>
<%@page import="java.util.Date"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>拆分</title>
</head>
<body>


<%
	ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
	IMatchService matchService = (IMatchService)ac.getBean("matchService");
	String result="<p><a  style='color:red;font-size:16px;' target='_blank' href='business/autoSplit.jsp?splitTrue=true'>【确定要拆分】 </a><p>";
	if(request.getParameter("splitTrue")!=null && request.getParameter("splitTrue").toString().equals("true")){
		result = matchService.sellSplit();
	}
	request.setAttribute("result",result);
	
%>
<h3>正在拆分中......</h3>
<p>${result }</p>

</body>
</html>